import { Component } from "react";
// 引入Context
// import { TestContext } from '@/components/ContextComponents/TestContext'

interface ChildComponentProps {
    age: number,
}
interface ChildComponentState {
    name: string
}

class ClassCom extends Component<ChildComponentProps, ChildComponentState> {


    constructor(props: ChildComponentProps) {
        super(props)
        this.state = {
            name: 'jixiong'
        }
    }

    public myMethods = () => {
        console.log('3333333')
    }

    render() {
        return (
            <>
            <div>这是context提供的值Class</div>
            </>
        )
    }
}

export default ClassCom